package c.e.b.h.e.s;

import c.e.b.h.e.k.x0;
import org.json.JSONException;
import org.json.JSONObject;

/* compiled from: SettingsJsonParser */
public class f {
    public final x0 a;

    public f(x0 x0Var) {
        this.a = x0Var;
    }

    public c.e.b.h.e.s.i.f a(JSONObject jSONObject) throws JSONException {
        g bVar;
        if (jSONObject.getInt("settings_version") != 3) {
            bVar = new b();
        } else {
            bVar = new h();
        }
        return bVar.a(this.a, jSONObject);
    }
}
